package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

/**
 * 获取审批批量打印
 *
 * @author: hongxiao
 * @date: 2020-02-07 16:39
 * @since: v4.13.0
 */
@Getter
@Setter
@ToString
public class PaasBatchPrintByProcessDTO extends BaseDTO {
    
    private static final long serialVersionUID = 1892477579555508102L;
    /**
     * 审批类型
     * @see com.xbongbong.paas.enums.ProcessTypeEnum
     */
    @NotNull(message = "审批类型不能为空")
    private String processType;
    /**
     * 提交人
     */
    private String commitUserId;
    /**
     * 应用id
     */
    @NotNull(message = "应用id不能为空")
    private Long appId;
    /**
     * 菜单id
     */
    @NotNull(message = "菜单id不能为空")
    private Long menuId;
    /**
     * 表单id
     */
    @NotNull(message = "表单id不能为空")
    private Long formId;
    /**
     * 表单名称
     */
    private String formName;
    /**
     * saas标记
     */
    private Integer saasMark;
    /**
     * 表单类型
     */
    private Integer businessType;
    /**
     * 节点状态
     */
    private Integer taskType;
    /**
     * 审批状态
     */
    private Integer flowStatus;
    /**
     * 提交时间
     */
    private List<Object> commitTime;
    /**
     * 打印模板id
     */
    @NotNull(message = "打印模板id不能为空")
    private Long printTemplateId;
    /**
     * 页数
     */
    private Integer page;
    /**
     * 每页行数
     */
    private Integer pageSize;
    /**
     * 删除标记
     */
    private Integer del;
    
    public PaasBatchPrintByProcessDTO() {
        commitTime = new ArrayList<>();
        del = 0;
        // 默认一页，50条
        page = 1;
        pageSize = 50;
    }
}